Screwdriver Data Schema
Internal data schema of Screwdriver
Description
This contains the structure/validation for all the models/resources of Screwdriver.
It's broken down into three sections:
api
- API related input/output structureconfig
- Screwdriver.yaml definitionsmodels
- Internal data resourcesplugins
- Plugins (datastore, executor, etc.)
Models
The model represents a combination of what is required to create the resource and what is possible for returning from the resource.
Methodology
Each model contains seven (7) schemas:
base
- List of all available fields in the modelget
- Expected return values from a GET request against this resourcecreate
- Expected input values when making a CREATE action against this resourceupdate
- Expected input values when making an UPDATE action against this resourcekeys
- List of keys that combine to represent a unique rowtableName
- Internal name of the tableindexes
- Secondary indexes to make search/lookup faster
Usage
npm install screwdriver-data-schema
Testing
npm test
License
Code licensed under the BSD 3-Clause license. See LICENSE file for terms.